<template>
	<view class="TuanBao">
		<view>团惠包</view>
		<view>{{title}}</view>
		<view v-if="type!='new'" class="views" @click="navTo('groupBenefits/groupEditor')">查看团惠包>></view>
		<view v-if="but" class="groupBot" @click="but=='结算团惠包'?navTo('groupBenefits/groupEditor'):add()">{{but}}</view>
	</view>
</template>

<script setup lang="ts">
	import {navTo} from '@/utils/navigator';
	const props = defineProps({
	  type: { type: String },
	   title: { type: String },
	    but: { type: String },
	});
	const emit = defineEmits(['addGroup']);
	function add(){
		emit("addGroup")
	}
</script>

<style scoped lang="less">
	@import url('../groupBenefits/less/TuanBao.less');
</style>